package com.jwaoo.mobile.view.setting;

import android.os.Bundle;
import android.view.View;

import com.dx.as.ToolBarOptions;
import com.dx.as.UI;
import com.dx.as.common.FragmentUtils;
import com.jwaoo.mobile.R;
import com.jwaoo.mobile.view.setting.fragment.FeedbackFragment;
import com.jwaoo.mobile.view.setting.fragment.FuctionFragment;
import com.jwaoo.mobile.view.setting.fragment.MessageFragment;
import com.jwaoo.mobile.view.setting.fragment.SettingFragment;

/**
 * Created by jwaoo on 2017/12/13.
 */

public class SettingActivity extends UI{
    @Override
    protected void onActivityCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_container);
        SettingFragment settingFragment = new SettingFragment();
        FragmentUtils.putDefaultFragment(this,R.id.register_container,settingFragment);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        FragmentUtils.clearFragmentByClass(SettingFragment.class);
        FragmentUtils.clearFragmentByClass(FuctionFragment.class);
        FragmentUtils.clearFragmentByClass(FeedbackFragment.class);
        FragmentUtils.clearFragmentByClass(MessageFragment.class);
    }

}
